This is pretty much the same as the using the PerfMon to measure the CPU usage
excapt that you can filter out processes or only include some of them.
CPUInclude
List of process names that are included in the cpu measuring. The
names are separated with semicolon (";"-char). The include list overrides
the excludes.
CPUExclude
List of process names that are excluded from the cpu measuring. The
names are separated with semicolon (";"-char). The include list must be
empty to exclude something.
TopProcess
Value 1 returns the name of the process that took the most CPU
time since the last update. Value 2 returns the CPU time for that
process. Note that this returns CPU time and not the percentage. If
you measure the value once per second you can scale the value with
100000 to get the percentage but you should note that if the values
cannot be measured excatly once per second (like it usually cannot
because the timer in Windows is not accurate) you might get values
larger than 100%.
Examples
Display the name and CPU usage of the top process:
[MeasureTopProcess]
Measure=Plugin
Plugin=Plugins\AdvancedCPU.dll
TopProcess=2
CPUExclude=Idle
[MeasureTopProcess2]
Measure=Plugin
Plugin=Plugins\AdvancedCPU.dll
TopProcess=1
CPUExclude=Idle
[MeterTopProcess]
Meter=STRING
X=0
Y=0
MeasureName=MeasureTopProcess
MeasureName2=MeasureTopProcess2
Text="%1 (%2%)"
NumOfDecimals=1
Scale=100000